package com.dd.dao;

import com.dd.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EmployeeDao {

    public List<Employee> selectAll();

    public void addEmployee(Employee employee);

    public void upDatedEmployee(@Param("id") int id,
                                @Param("name") String name,
                                @Param("sex") String sex,
                                @Param("startTime") Date startTime,
                                @Param("phone") String phone);

    public void deleteEmployee(int id);
}
